package com.vueapi.utils;

import com.vueapi.domain.HjUser;

/**
 * @Classname ThreadLocalUtils
 * @Description TODO
 * @Created by 赵宏建
 * @Date 2022/9/20 15:16
 * @Version 1.0.0
 */
public class ThreadLocalUtils {

    public ThreadLocalUtils() {
    }

    public static final ThreadLocal<HjUser> LOCAL = new ThreadLocal<>();

    public static void put(HjUser sysUser){
        LOCAL.set(sysUser);
    };

    public static HjUser get(){
        return LOCAL.get();
    }

    public static void remove(){
        LOCAL.remove();
    }

}
